﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using System.Data;

namespace BLL
{
    public class ContractService
    {
        ContractDal contractDal = new ContractDal();
        public List<hetongjbxx> GetHetongjbxxes()
        {
            return contractDal.GetHetongjbxxes();
        }
        public List<hetong_chanpin> GetHetongchanpins(string hetongbh)
        {
            return contractDal.GetHetongchanpins(hetongbh);
        }
        /// <summary>
        /// 生成合同
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DataSet GenerateContract(int id)
        {
            return contractDal.GenerateContract(id);
        }
        /// <summary>
        /// 获取单个合同
        /// </summary>
        /// <returns></returns>
        public hetongjbxx GetHetongjbxx(int id)
        {
            return contractDal.GetHetongjbxx(id);
        }
    }
}
